﻿using System;
using System.Threading.Tasks;
using YiSha.Data.Repository;
using YiSha.Entity.QixingManage;
using YiSha.Util.Extension;

namespace YiSha.Service.QixingManage
{
    public class ShopBrandRelationService : RepositoryFactory
    {
        public async Task SaveForm(ShopBrandRelation entity)
        {
            if (entity.Id.IsNullOrZero())
            {
                entity.Create();
                await this.BaseRepository().Insert(entity);
            }
            else
            {

                await this.BaseRepository().Update(entity);
            }
        }
    }
}

